#include "Logger.hpp"
#include <memory>

int main()
{
    //  RAII风格的日志构建和输出刷新的过程
    // EnableConsoleLogStrategy();
    EnableFileLogStrategy();
    // std::string test = "hello log";
    // // std::unique_ptr<LogStrategy> logger_ptr = std::make_unique<ConsoleLogStrategy>();
    // // logger_ptr->SyncLog(test);
    // std::unique_ptr<LogStrategy> logger_ptr = std::make_unique<FileLogStrategy>();
    // logger_ptr->SyncLog(GetCurrentTime());
    // logger_ptr->SyncLog(test);
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 132;
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 132;
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 132;
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 132;
    LOG(LogLevel::ERROR) << "hello world" << ", 3.14 " << 132;

    return 0;
}